package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.entity.TlCart;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CartMapper extends BaseMapper<TlCart> {

    @Select("select * from tl_cart where user_id = #{uid}")
    List<TlCart> findAllByUid(@Param("uid") Integer uid);
}
